home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 317 / asmsrc / read.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-10-20  |  1.8 KB  |  50 lines

  1. /* read.h - of read.c */
  2.  
  3. /* Copyright (C) 1986 Free Software Foundation, Inc.
  4.  
  5. This file is part of Gas, the GNU Assembler.
  6.  
  7. The GNU assembler is distributed in the hope that it will be
  8. useful, but WITHOUT ANY WARRANTY.  No author or distributor
  9. accepts responsibility to anyone for the consequences of using it
  10. or for whether it serves any particular purpose or works at all,
  11. unless he says so in writing.  Refer to the GNU Assembler General
  12. Public License for full details.
  13.  
  14. Everyone is granted permission to copy, modify and redistribute
  15. the GNU Assembler, but only under the conditions described in the
  16. GNU Assembler General Public License.  A copy of this license is
  17. supposed to have been given to you along with the GNU Assembler
  18. so you can know your rights and responsibilities.  It should be
  19. in a file named COPYING.  Among other things, the copyright
  20. notice and this notice must be preserved on all copies.  */
  21.  
  22. extern    char    * input_line_pointer; /* -> char we are parsing now. */
  23.  
  24. #define PERMIT_WHITESPACE    /* Define to make whitespace be allowed in */
  25.                 /* many syntactically unnecessary places. */
  26.                 /* Normally undefined. For compatibility */
  27.                 /* with ancient GNU cc. */
  28. #undef PERMIT_WHITESPACE
  29.  
  30. #ifdef PERMIT_WHITESPACE
  31. #define SKIP_WHITESPACE() {if (* input_line_pointer == ' ') ++ input_line_pointer;}
  32. #else
  33. #define SKIP_WHITESPACE() ASSERT( * input_line_pointer != ' ' )
  34. #endif
  35.  
  36.  
  37. #define    LEX_NAME    (1)    /* may continue a name */              
  38. #define LEX_BEGIN_NAME    (2)    /* may begin a name */                  
  39.                                               
  40. #define is_name_beginner(c)     ( lex_type[c] & LEX_BEGIN_NAME )
  41. #define is_part_of_name(c)      ( lex_type[c] & LEX_NAME       )
  42.  
  43. extern char lex_type[];
  44.  
  45. void        read_begin();
  46. void        read_end();
  47. void        read_a_source_file();
  48.  
  49. /* end: read.h */
  50.